/*
 * @Descripttion:
 * @version:
 * @Author: zhangjian
 * @Date: 2022-05-25 11:07:49
 * @LastEditors: zhangjian
 * @LastEditTime: 2022-06-22 17:38:08
 */
import http from '@/utils/httpRequest'
export default {

    /** 得到新手和公告的列表 page页码    **/
  getBannerList (param) { // http://192.168.0.145:8086/sly/api/user/loginByPhone
    return http.get(http.adornUrl('/bannertext/list'), { params: param })
  },

     /** 得到新手和公告的列表  **/
  saveBanner (param) { // http://192.168.0.145:8086/sly/api/user/loginByPhone
    return http.post(http.adornUrl('bannertext/save'), param)
  },

     /** 得到新手或公告的列表  type=1 公告  2--新手指导**/
  getBannerListByType (param) { // http://192.168.0.145:8086/sly/api/user/loginByPhone
    return http.get(http.adornUrl(`/bannertext/listByType`), { params: param })
  },
  /** 得到新手或公告的列表  type=1 公告  2--新手指导**/
  del (id) { // http://192.168.0.145:8086/sly/api/user/loginByPhone
    return http.get(http.adornUrl(`/bannertext/delete/${id}`))
  }

}
